class Site::RequirementController < ApplicationController
  
  def index
    @title = "创意需求"
    @products = Retype.find_less_requirements(100000)
    @brands = Retype.find_less_requirements(110000)
    @vis = Retype.find_less_requirements(120000)
    render :layout => false
  end
  
  def detail
    id = params[:id] ||= 100000
    old_url = params[:old_url] ||= "0-0-0-0"
    session[:url_string]= old_url 
    @retype = Retype.find_by_level(id)
    @title = @retype.name
    @requirements = @retype.find_all_requirements(session[:url_string])
  end
  
end
